package configini

import (
	"gitee.com/ichub/goconfig/common/base/baseiface"
	"gitee.com/ichub/goconfig/common/basedi"
)

const singleNameIchubConfigIni = "IchubInicfg"

// init
// register
// load
func init() {
	registerBeanIchubConfigIni()
}

// register IchubInicfg
func registerBeanIchubConfigIni() {
	basedi.RegisterLoadBean(singleNameIchubConfigIni, LoadIchubConfigIni)
}

func FindBeanIchubConfigIni() *IchubInicfg {
	return basedi.FindBean(singleNameIchubConfigIni).(*IchubInicfg)
}

func LoadIchubConfigIni() baseiface.ISingleton {
	return NewIchubInicfg()
}
